package com.awesome.spring.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Alex Wu
 * @since 2025-01-23
 */
@TableName("articles")
public class Articles implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id")
    private Float id;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 1-已发布,2-审核中
     */
    private Boolean state;

    /**
     * 是否删除
     */
    private Boolean isDeleted;

    public Float getId() {
        return id;
    }

    public void setId(Float id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Boolean getState() {
        return state;
    }

    public void setState(Boolean state) {
        this.state = state;
    }
    public Boolean getDeleted() {
        return isDeleted;
    }

    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "Articles{" +
            "id=" + id +
            ", title=" + title +
            ", content=" + content +
            ", state=" + state +
            ", isDeleted=" + isDeleted +
        "}";
    }
}
